/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package ia_psr.problemas.coloreado;

import ia_psr.problemas.Variable;

/**
 *
 * @author Rubén Avalos Elvira y Fabiana Celiberti Tapie
 */
public class Color extends Variable {

    public Color(String color) {
        super(color);
    }

    public String getValue() {
        return (String)value;
    }

    public void setValue(String color) {
        value = color;
    }

    public String toString() {
        return (value != null) ? value.toString() : "";
    }

    public boolean equals(Object o) {
        if (o instanceof Color) {
            Variable v = (Variable)o;
            return value.equals(v.getValue());
        }
        return false;
    }

}
